<template>
  <div class="home">
    <input type="text" v-model="title" />
    <button @click="search">搜索</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      title: "",
    };
  },
  methods: {
    search() {
      this.$axios.get("/api/suggest?word=" + this.title).then((res) => {
        console.log(res);
      });
    },
  },
};
</script>
